<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddSkuToGoodsCars extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('goods_cars', function (Blueprint $table) {
            //
            $table->string("sku")->default("")->comment("商品sku");
            $table->string("sku_value")->default("")->comment("sku值");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('goods_cars', function (Blueprint $table) {
            //
            $table->dropColumn("sku_value");
            $table->dropColumn("sku");

        });
    }
}
